<%@page import="com.neiquan.backstage.pub.bsc.dao.po.Partner"%>
<%@page import="com.neiquan.backstage.resourec_manage.PartnerService"%>
<%@page import="com.neiquan.backstage.event.EventService"%>
<%@page import="com.neiquan.backstage.pub.bsc.dao.po.Event"%>
<%@page import="java.util.List"%>
<%@page import="com.neiquan.backstage.common.CommonService"%>
<%@page import="com.neiquan.backstage.common.util.SpringContextUtils"%>
<%@page import="org.springframework.context.ApplicationContext"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
ApplicationContext appCtx = SpringContextUtils.getApplicationContext();
CommonService commonService = appCtx.getBean(CommonService.class);
int memberId=Integer.valueOf(request.getParameter("memberId"));
PartnerService partnerService = appCtx.getBean(PartnerService.class);
List<Partner> partnerList = partnerService.queryByMemberId(memberId);
pageContext.setAttribute("partnerList", partnerList);
pageContext.setAttribute("memberId", memberId);
%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8">
	<meta charset="UTF-8">
	<title>合作伙伴</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=1.0" />
	<meta name="apple-mobile-web-app-capable" content="yes" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge" />
	<link rel="stylesheet" href="css/base.css" />
	<link rel="stylesheet" href="css/main.css" />
</head>
<body bgcolor="#f0f0f0">
	<ul class="patner_detail_ul">
		<c:forEach var="partner" items="${pageScope.partnerList}">
			<li class="patner_detail">
				<a href="partner_detail.jsp?partnerId=${partner.partnerId}">
					<img class="fl" src="${partner.loge}" width="100px" height="100px">
					<p class="fr patner_detail_cont">${partner.name}</p>
				</a>
			</li>
		</c:forEach>
	</ul>	
</body>
<script src="js/jquery.min.js"></script>
<script src="js/main.js"></script>
<script src="js/responsive.js"></script>
</html>
